package org.luxor.cloud.authentication.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.luxor.cloud.authentication.entity.OauthClientResourceRefEntity;

import java.util.List;

/**
 * 客户端与可访问资源的关联关系
 *
 * @author sunlightcs @date 2020-10-18 21:19:26
 */
@Mapper
public interface OauthClientResourceRefMapper extends BaseMapper<OauthClientResourceRefEntity> {

    /**
     * 获取某客户端可访问的服务提供方
     *
     * @param clientId 客户端ID
     * @return 服务提供方列表
     */
    List<String> selectResourceIds(String clientId);
}
